﻿@model HomeViewModel
@{
    ViewBag.Title = "Kelper";
}

<h2>Welcome to Kelper!</h2>

<div class="right-column">
    <h3>Popular ingredients</h3>
    @Html.DisplayFor(m => Model.IngredientCloud)
</div>

<div class="left-column">
    <h3>Newest additions to our tasteful database:</h3>
    @foreach (var r in Model.Recent) {
        @Html.DisplayFor(m => r)
    }

    @Html.PageLinks(Model.TotalPages, Model.CurrentPage, x => Url.Action("index", x == 1 ? null : new { page = x }))
</div>